package edu.zut.hb.software.chat.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import edu.zut.hb.software.base.domain.BaseEntity;
@Table(name = "C_chat")
@Entity
public class Chat extends BaseEntity<Long>{
	    /**
	 * 
	 */
	private static final long serialVersionUID = -1076872636508057847L;

		@Column(name = "name")//聊天室名字
	    private String name;

	    @Column(name = "num")//聊天室编号
	    private int num;

	    @Column(name = "capacity")//聊天室容量
	    private int capacity;
	    
	    @Column(name = "des")//聊天室描述
	    private int des;
	    
	    @Column(name = "status")
	    private boolean status;

	@ManyToOne
	@JoinColumn(name = "CHATGROUP_ID")
	ChatGroup group;

//	    @ManyToOne
//	    @JoinColumn(name = "hospitalId")
//	    Hospital hospital;

	    public ChatGroup getGroup() {
			return group;
		}

		public void setGroup(ChatGroup group) {
			this.group = group;
		}

		public String getName() {
	        return name;
	    }

	    //public Hospital getHospital() { return hospital; }

	    public void setName(String name) {
	        this.name = name;
	    }

	    public int getNum() {
	        return num;
	    }

	    public void setNum(int num) {
	        this.num = num;
	    }

		public int getCapacity() {
			return capacity;
		}

		public void setCapacity(int capacity) {
			this.capacity = capacity;
		}

		public int getDes() {
			return des;
		}

		public void setDes(int des) {
			this.des = des;
		}
		

	public void setStatus(boolean status) {
			this.status = status;
		}

	public String isStatus() {
		// TODO Auto-generated method stub
			return null;
	}

	   // public void setHospital(Hospital hospital) {
	     //   this.hospital = hospital;
	    //}

	    
}
